package learningThread.syn.synchronizedMethodLockObj.communicate.joinException;

/**
 * join和interrupt方法彼此相遇，出现异常或，但是ThreadA仍在执行
 */
public class Test {

    public static void main(String[] args) {
        try {
            ThreadB threadB = new ThreadB();
            threadB.start();

            Thread.sleep(500);

            ThreadC threadC = new ThreadC(threadB);
            threadC.start();
        } catch (InterruptedException e) {
            e.printStackTrace();
        }

    }
}
